#include <iostream>
#include <sys/types.h>
#include <dirent.h>
#include <cstring>
#include <vector>
using namespace std;
int main(){
  DIR * dir=opendir("/home/lv");
  struct dirent *dir_lv;
  vector<struct dirent *> dirs{};
  while((dir_lv=readdir(dir))!=NULL){
    dirs.push_back(dir_lv);
  }
  for(auto item:dirs){
    cout<<item->d_name<<endl;
  }
  return 0;
}
